#!/usr/bin/zsh
# [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx &> /dev/null
# [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null
# zmodload zsh/zprof
export PATH=$HOME/.bin:$HOME/.config/rofi/scripts:$HOME/.config/polybar/scripts:$HOME/.local/bin:/usr/local/bin:$PATH
export HISTFILE=~/.zhistory
export HISTSIZE=3000
export SAVEHIST=3000
autoload -Uz compinit
for dump in ~/.zcompdump(N.mh+24); do
  compinit
done
compinit -C
BASE16_SHELL="$HOME/.config/base16-shell/base16-default.dark.sh"
    [[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
#export ZSH="/usr/share/oh-my-zsh"
#ZSH_THEME="af-magic"
DISABLE_AUTO_UPDATE="true"
plugins=()
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
[[ ! -d $ZSH_CACHE_DIR ]] && mkdir -p $ZSH_CACHE_DIR
#source $ZSH/oh-my-zsh.sh
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=white"

export TERM="xterm"
export EDITOR="$([[ -n $DISPLAY && $(command -v subl3) ]] && echo 'vim' || echo 'vim')"
export BROWSER="chromium"
export XDG_CONFIG_HOME="$HOME/.config"
#export NVM_DIR="$HOME/.config/nvm"
export QT_QPA_PLATFORMTHEME="qt5ct"
